import com.yihuu.service.TestService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by yuhui on 2017/9/26.
 */
public class Testor {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:spring-*.xml");
        TestService testService = (TestService) context.getBean("testService");
        String say = testService.say();
        System.out.println(say);
    }
}
